import difflib
import sys

myp=sys.path[1]
t1fname=myp+"/test/1.txt"
t2fname=myp+"/test/2.txt"
t1file=open(t1fname)
t2file=open(t2fname)
t1=list(t1file)
t2=list(t2file)

#print (t1)

mydiff=difflib.Differ()
for l in mydiff.compare(t1,t2):
    print (l)

t1file.close()
t2file.close()
